//
//  NSString+pathForLayout.m
//  EWallet
//
//  Created by jzhang on 10/14/13.
//  Copyright (c) 2013 payegis. All rights reserved.
//

#import "NSString+pathForLayout.h"

@implementation NSString (pathForLayout)

+ (NSString *)ypathWithSiblings:(NSInteger)margin
{
    NSString *path = [NSString stringWithFormat:@"y:h+%d", margin];
    return path;
}

+ (NSString *)xpathWithSiblings:(NSInteger)margin
{
    NSString *path = [NSString stringWithFormat:@"x:w+%d", margin];
    return path;
}

+ (NSString *)ypathWithSiblingsWithoutSize:(NSInteger)margin
{
    NSString *path = [NSString stringWithFormat:@"y:%d", margin];
    return path;
}

+ (NSString *)xpathWithSiblingsWithoutSize:(NSInteger)margin
{
    NSString *path = [NSString stringWithFormat:@"x:%d", margin];
    return path;
}

@end
